package com.jnevision.replacecard.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jnevision.common.CommonQuery;
import com.jnevision.replacecard.model.ReplaceCard;
import com.jnevision.replacecard.model.ReplaceCardVO;

import io.lettuce.core.dynamic.annotation.Param;

/**
 * <p>
 * 补卡申请 Mapper 接口
 * </p>
 *
 * @author gavin
 * @since 2019-07-15
 */
@Mapper
public interface ReplaceCardMapper extends BaseMapper<ReplaceCard> {
    List<ReplaceCardVO> getApprove(String userId);

    ReplaceCardVO getApproveDetail(String replaceCardRecordId);

    IPage<ReplaceCardVO> page(Page<ReplaceCardVO> page, @Param("commonQuery") CommonQuery commonQuery, @Param("result") Integer result);
}
